   <div class="minicart"> 
   <a href="<?php echo base_url().'cart/sepetim';?>" class="minicart_link" > 
   <span class="item"><b><?php if($this->session->userdata['items']) echo $this->session->userdata['items'];?></b> ITEM /</span> 
   <span class="price"><b><?php if($this->session->userdata['total']) echo number_format( $this->session->userdata['total'], 0, '', '.'). " TL";?></b></span> </a>
                
                
<div class="cart_drop"> <span class="darw"></span>
<ul>

             <?php if(isset($this->session->userdata['products'])): ?>
              
                  
                    <?php foreach($this->session->userdata['products'] as $pro): ?>
<li><img src="<?php echo $pro['image']; ?>">
<a href="#"><?php echo $pro['model']." ".$pro['name'];?> x <?php echo $pro['quantitiy']; ?></a> 
<span class="price"><?php echo number_format( $pro['price'], 0, '', '.')." TL";?></span></li>
   <?php endforeach; ?>
                  

<div class="cart_bottom">
<div class="subtotal_menu">
<small>Subtotal:</small><big><?php echo number_format( $this->session->userdata['total'], 0, '', '.')." TL";?></big></div>
<?php echo anchor('checkout','Hemen öde'); ?><?php echo anchor('cart/sepetim','Sepetim'); ?>
</div>
<?php endif; ?>
                    </ul>
                </div>
            </div>
            
                    
                